<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
			*{
				/*权值  0  很容易被覆盖*/
				color: #89eed5 !important;
				background: #ee9fd5 !important;
			}
			div{/*权值 1*/
				color: #ee9fd5;
				background: #89eed5;
			}
			.d1{/*权值 10*/
				color: #eeeea6;
				background: #abeeec;
			}
			div.d1{/*选择器权值之和*/
				color: #ee9fd5;
				background:#d9d5ee;
			}
			body div.d1{/*权值 12*/
				font-size: 25px;
			}
			#d1{/*权值 100*/
				font-size: 15px;
				color: #d4eece;
				background: #eed5cf;
			}
			div#d1{/*权值101*/
				font-size: 20px;
				color: #9992ee;
				background: #85eeaf;
			}
			div#d1:hover{/*权值 111*/
				color: #b8ee96;
				background: #e1ee64;
			}
		</style>
		
	</head>
	<body>
		<div class="d1" id="d1" style="color: red;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla tempora quod velit officiis illo minus minima accusamus corporis repellendus adipisci neque, quia, praesentium autem blanditiis dolores distinctio doloremque. Rem, aliquam.</div>
	</body>
</html>